package com.ybxx.fees.model;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.apache.commons.lang.StringUtils;

import com.ybxx.core.model.BaseModel;

@Entity
@Table(name="tbl_fees_watermeter_record_item")
public class WatermeterRecordItem extends BaseModel {
	@Id
	private String ricode;
	@ManyToOne(targetEntity=WatermeterRecords.class,fetch=FetchType.LAZY)
	@JoinColumn(name="wmfcode",referencedColumnName="wmfcode")
	private WatermeterRecords watermeterRecords;
	private String target;
	private String walk="0";
	private String price;
	private String ymoney="0";
	public String getRicode() {
		return ricode;
	}
	public void setRicode(String ricode) {
		this.ricode = ricode;
	}
	public WatermeterRecords getWatermeterRecords() {
		return watermeterRecords;
	}
	public void setWatermeterRecords(WatermeterRecords watermeterRecords) {
		this.watermeterRecords = watermeterRecords;
	}
	public String getTarget() {
		return target;
	}
	public void setTarget(String target) {
		this.target = target;
	}
	public String getWalk() {
		return walk;
	}
	public void setWalk(String walk) {
		if(StringUtils.isNotEmpty(walk)){
			this.walk = walk;
		}
	}
	public String getPrice() {
		return price;
	}
	public void setPrice(String price) {
		if(StringUtils.isNotEmpty(price)){
			this.price = price;
		}
	}
	public String getYmoney() {
		return ymoney;
	}
	public void setYmoney(String ymoney) {
		if(StringUtils.isNotEmpty(ymoney)){
			this.ymoney = ymoney;
		}
	}
	
}
